package com.itheima.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.entity.MyLock;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface MyLockMapper extends BaseMapper<MyLock> {
    @Delete("<script>delete from mylock where method_name = #{value}</script>")
    void deleteByMethodName(@Param("value") String methodName);
}